<div class="tableform">
  <div class="tip-text">
  <h2 class="font14px">清风设计团队 —— 商派认证模板服务商，专业品质，为电商助力!</h2>
  <p>数百款精品模板及应用尽在清风设计，不断更新。<a href="http://www.hnqss.cn/html/jszx/" target="_blank">技术研究</a>&nbsp;&nbsp;<a href="http://www.hnqss.cn/html/business/" target="_blank">网店运营</a>&nbsp;&nbsp;<a href="http://www.hnqss.cn/help/" target="_blank">使用帮助</a>&nbsp;&nbsp;<a href="http://www.hnqss.cn/fwtc/" target="_blank">代维服务</a>，最新电商资源，请点击进入<a href="http://www.hnqss.cn/" target="_blank">清风设计官网</a>，服务QQ：800060659</p>
    <p>
    <span>点击进入模板专区：</span>
    <a href="http://www.hnqss.cn/moban/ecstore/" target="_blank">1.ECStore模板</a>&nbsp;&nbsp;
    <a href="http://www.hnqss.cn/moban/ykd/" target="_blank">2.易开店模板</a>&nbsp;&nbsp;
    <a href="http://www.hnqss.cn/moban/shopex/" target="_blank">3.ShopEx模板</a>&nbsp;&nbsp;
    <a href="http://www.hnqss.cn/moban/fxw/" target="_blank">4.分销王模板</a>&nbsp;&nbsp;
    <a href="http://www.hnqss.cn/Mobile/" target="_blank">5.手机端模板</a>&nbsp;&nbsp;
    <a href="http://www.hnqss.cn/downloads/mfmb/" target="_blank">6.免费模板</a>
    </p>
    <p><span>点击进入应用专区：</span>
    <a href="http://www.hnqss.cn/tools/" target="_blank">1.插件中心</a>&nbsp;&nbsp;
    <a href="http://www.hnqss.cn/html/ECStore/" target="_blank">2.挂件中心</a>&nbsp;&nbsp;
    <a href="http://www.hnqss.cn/downloads/mfcj/" target="_blank">6.免费应用</a>
    </p>
  </div>
</div>

<div class="tableform">
    <div class="widgetconfig">
    	<table width="100%" cellpadding="0" cellspacing="0">
        <tr>
        	<th width="10%">搜索框默认提示：</th>
			<td width="40%"><input type="text" name="default_key" value="<{$setting.default_key|default:'请输入商品关键词'}>" class="inputstyle" style="width:200px;" /></td>
            <th width="10%">关键词描述：</th>
            <td width="40%"><input type="text" name="hotkey" value="<{$setting.hotkey}>" class="inputstyle" style="width:200px;" />(留空则不显示)</td>
        </tr>
        </table>
    </div>
</div>
<div style="margin-left:10px;"><{button label="添加栏目菜单" app="desktop" icon="btn_add.gif" onclick="addConfig('hots');"}></div>
<div class="tableform">
	<div class="widgetconfig" id="listArea_hots">
		<{foreach from=$setting.hots item=data key=key}>
		<div class="configs">
        	<input type="hidden" name="hots[<{$data.i}>][i]" value="<{$data.i}>">
			<table width="100%" cellpadding="0" cellspacing="0">
			  <tr>
			  <th width="10%">文字：</th>
			  <td width="15%"><input type="text" name="hots[<{$data.i}>][text]" value="<{$data.text}>" class="inputstyle" style="width:95%"></td>
			  <th width="10%">链接：</th>
			  <td width="35%"><input type="text" name="hots[<{$data.i}>][url]" value="<{$data.url}>" class="inputstyle" style="width:95%" ></td>
              <th width="10%">样式名：</th>
			  <td width="10%"><input type="text" name="hots[<{$data.i}>][classname]" value="<{$data.classname}>" class="inputstyle" style="width:95%;"></td>
              <th width="5%"><span onclick="delLink(this);"><{img src="bundle/delecate.gif" style="cursor:pointer;" alt="删除" title="删除" app="desktop"}></span></th>
			  </tr>
			</table>			
		</div>
		<{/foreach}>
	</div>
</div>
<script>
function addConfig(key){
	var content;
	d=new Date();
	i=d.getTime();
	if(key=='hots'){
		content='\
		<div class="configs">\
			<input type="hidden" name="hots['+i+'][i]" value="'+i+'">\
			<table width="100%" cellpadding="0" cellspacing="0">\
			  <tr>\
			  <th width="10%">文字：</th>\
			  <td width="15%"><input type="text" name="hots['+i+'][text]" class="inputstyle" style="width:95%"></td>\
			  <th width="10%">链接：</th>\
			  <td width="35%"><input type="text" name="hots['+i+'][url]" class="inputstyle" style="width:95%"></td>\
			  <th width="10%">样式名：</th>\
			  <td width="10%"><input type="text" name="hots['+i+'][classname]" class="inputstyle" style="width:95%"></td>\
			  <th width="5%"><span onclick="delLink(this);"><{img src="bundle/delecate.gif" style="cursor:pointer;" alt="删除" title="删除" app="desktop"}></span></th>\
			  </tr></table></div>\
	';}
	$E('#listArea_'+key).adopt(new Element('div').set('html',content).getFirst());
}
delLink=function(o){
	$(o).getParent('.configs').remove();
}
</script>